Re: [GENERAL] How to do this in SQL? - Mailing list pgsql-sql

From Herouth Maoz
Subject Re: [GENERAL] How to do this in SQL?
Date
Msg-id l03110710b3269a63e14c@[147.233.148.140]
Whole thread Raw
In response to Re: [GENERAL] How to do this in SQL?  (Chris Bitmead <chris.bitmead@bigfoot.com>)
List pgsql-sql
At 17:03 +0200 on 30/03/1999, Chris Bitmead wrote:


> Thanks! Now what if I had...
> CREATE TABLE book (author oid, publisher oid);
>
> What is the syntax? Is it...
>
> INSERT INTO BOOK(author, publisher)
> SELECT author.oid, publisher.oid
> FROM author, publisher
> WHERE author.name = 'Tolstoy' AND publisher.name = 'Penguin';
>
> Is that right?

Looks right to me.

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma




pgsql-sql by date:

Previous
From: Chris Bitmead
Date:
Subject: Re: [GENERAL] How to do this in SQL?
Next
From: Oliver Smith
Date:
Subject: Date operation efficiency